Release 10.1A: OpenEdge Development:
Web Services


Accessing SOAP header entries

The SOAP header-entryref object handle provides two methods for accessing the element subtree of the SOAP header entry that it references, as shown in Figure 11–2.

Figure 11–2: Accessing entry elements in the SOAP header object model

The SOAP header-entryref object handle provides two methods to access the XML in the header entry that it references:

The SOAP header-entryref object handle also provides two corresponding methods for replacing the entire content of the SOAP header entry that it references:

For more information on these objects and all the attributes and methods that they support, see the "Creating and managing SOAP message headers" section.

In rare instances when the WSDL Analyzer identifies a temp-table or ProDataSet definition that maps to the header entry, you can use the GET-SERIALIZED( ) and SET-SERIALIZED( ) methods in conjunction with the READ-XML( ) and WRITE-XML( ) methods of the documented 4GL object (temp-table or ProDataSet) to access or build the header entry.

To access a SOAP response header entry as a temp-table or ProDataSet:

  1. Set a LONGCHAR with the header entry XML using the GET-SERIALIZED( ) method.
  2. Load the temp-table or ProDataSet from the LONGCHAR using the READ-XML( ) method.

To create a SOAP request header entry from a temp-table or ProDataSet:

  1. Write the header entry from the temp-table or ProDataSet to a LONGCHAR using the WRITE-XML( ) method.
  2. Replace the header entry with the serialized XML in the LONGCHAR using the GET-SERIALIZED( ) method.

For more information on temp-table and ProDataSet XML methods, see OpenEdge Development: Programming Interfaces .


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095